package com.xiake.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiake.pojo.Type;
import com.xiake.pojo.vo.PortalVo;
import com.xiake.service.TypeService;
import com.xiake.mapper.TypeMapper;
import com.xiake.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 周清峰
* @description 针对表【news_type】的数据库操作Service实现
* @createDate 2024-03-12 14:19:43
*/
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type>
    implements TypeService{
   @Autowired
   TypeMapper typeMapper;
    @Override
    public Result findAllTypes() {
        List<Type> typeList = typeMapper.selectList(null);
        return Result.ok(typeList);
    }



}




